package com.cdp.zwy.zwy_manager_back_v1.common;

    /**
     * @description: 业务异常枚举类
     * @author bug制作者
     * @date 2025/4/6 20:40
     * @version 1.0
     */
    public enum ErrorCode {
        NOT_DATA("10000","没有数据"),
        EMPLOYEE_NOT_FOUND("10001", "该员工不存在"),
        EMPLOYEE_ADD_ERROR("10002", "添加员工失败"),
        EMPLOYEE_DELETE_ERROR("10003", "删除员工失败"),
        EMPLOYEE_MODIFY_ERROR("10004", "修改员工失败"),
        EMPLOYEE_LOGIN_ERROR("10005", "登录失败"),
        EMPLOYEE_REGISTER_ERROR_USERNAME("10006","不能注册，该用户已经存在"),
        LOGIN_ROLE_ERROR("10007","登录失败，角色错误"),
        ADMIN_NOT_FOUND("10008", "该管理员不存在"),
        ADMIN_LOGIN_ERROR("10009", "管理员登录失败"),
        ADMIN_OLDPASSWORD_ERROR("10010","管理员旧密码错误"),
        EMPLOYEE_OLDPASSWORD_ERROR("10011","员工旧密码错误");



        private final String code;
        private final String msg;

        ErrorCode(String code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public String getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }


